export class AirBags { 
    count;
    delay;
    constructor(count, delay) { 
        console.log(`constructor ${count} airbags`);
        this.count = count;
        this.delay = delay;
    }
    deploy(event) { 
        console.log(`${this.count} Airbags delayed ${event}`);
    }
}

export class Engine { 
    displacement;
    cylinder;
    status;
    constructor(displacement, cylinder) { 
        console.log(`constructor engine with ${displacement} displacement`);
        this.displacement = displacement;
        this.cylinder = cylinder;
    }
    start() { 
        console.log(`engine started`);
        this.status = true;
    }

    stop() { 
        console.log(`engine stopped`);
        this.status = false;
    }
}